package ynny.dome05;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class map {
    public static void main(String[] args) {
        List<Map<String, Object>> list = new ArrayList<>();
        Map<String, Object> objects = new HashMap<>();
        objects.put("name", "张三");
        objects.put("id", 1);
        objects.put("age", 18);
        list.add(objects);

        Map<String, Object> objectss = new HashMap<>();
        objectss.put("name","王五");
        objectss.put("id",2);
        objectss.put("age",18);
        list.add(objectss);


        for (Map<String, Object> map : list) {
            System.out.println(map);

        }
    }
}
